﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace FB.Membership.Providers
{
    public class AspNetPermissionProviderConfiguration : ConfigurationSection 
    {
        [ConfigurationProperty("providers")]
        public ProviderSettingsCollection Providers {
            get
            {
                return (ProviderSettingsCollection)base["providers"];
            } 
        }


        [ConfigurationProperty("enabled", DefaultValue = "false")]
        public bool Enabled
        {
            get { return (bool)base["enabled"]; }
            set { base["enabled"] = value; }
        }


        [ConfigurationProperty("defaultProvider", DefaultValue = "SqlPermissionProvider")]
        public string Default {
            get { return base["defaultProvider"] as string; }
            set { base["defaultProvider"] = value; }
        }
    }
}
